package io;

import java.io.*;

public class BRDemo {
    public static void main(String[] args) throws IOException {
        /*
        * 创建文件输入流读取当前源代码文件
        * 进行流连接最终连接到BufferedReaders上
        * 读取每一行字符串并输出到控制台上*/
        FileInputStream fis = new FileInputStream("./src/main/java/io/BRDemo.java");
        InputStreamReader isr = new InputStreamReader(fis);
        BufferedReader br = new BufferedReader(isr);
        String line;
        while ((line = br.readLine())!=null){
            System.out.println(line);
        }
        System.out.println("写出完毕");
        br.close();
    }
}
